package com.ds.dsfans.shell.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ds.dsfans.shell.mapper.ShellOrderMapper;
import com.ds.dsfans.shell.domain.ShellOrder;
import com.ds.dsfans.shell.service.IShellOrderService;
import com.ds.dsfans.common.core.text.Convert;

/**
 * 命令列Service业务层处理
 * 
 * @author dsfans
 * @date 2024-07-09
 */
@Service
public class ShellOrderServiceImpl implements IShellOrderService 
{
    @Autowired
    private ShellOrderMapper shellOrderMapper;

    /**
     * 查询命令列
     * 
     * @param id 命令列主键
     * @return 命令列
     */
    @Override
    public ShellOrder selectShellOrderById(Long id)
    {
        return shellOrderMapper.selectShellOrderById(id);
    }

    /**
     * 查询命令列列表
     * 
     * @param shellOrder 命令列
     * @return 命令列
     */
    @Override
    public List<ShellOrder> selectShellOrderList(ShellOrder shellOrder)
    {
        return shellOrderMapper.selectShellOrderList(shellOrder);
    }

    /**
     * 新增命令列
     * 
     * @param shellOrder 命令列
     * @return 结果
     */
    @Override
    public int insertShellOrder(ShellOrder shellOrder)
    {
        return shellOrderMapper.insertShellOrder(shellOrder);
    }

    /**
     * 修改命令列
     * 
     * @param shellOrder 命令列
     * @return 结果
     */
    @Override
    public int updateShellOrder(ShellOrder shellOrder)
    {
        return shellOrderMapper.updateShellOrder(shellOrder);
    }

    /**
     * 批量删除命令列
     * 
     * @param ids 需要删除的命令列主键
     * @return 结果
     */
    @Override
    public int deleteShellOrderByIds(String ids)
    {
        return shellOrderMapper.deleteShellOrderByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除命令列信息
     * 
     * @param id 命令列主键
     * @return 结果
     */
    @Override
    public int deleteShellOrderById(Long id)
    {
        return shellOrderMapper.deleteShellOrderById(id);
    }
}
